import request from '@/utils/request'

// 查询订单列表
export function listOrder(query) {
  return request({
    url: '/member/order/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getOrder(orderId) {
  return request({
    url: '/member/order/' + orderId,
    method: 'get'
  })
}

// 同步订单支付状态
export function syncOrderStatus(outTradeNo) {
  return request({
    url: '/member/order/sync/' + outTradeNo,
    method: 'put'
  })
}

// 导出订单
export function exportOrder(query) {
  return request({
    url: '/member/order/export',
    method: 'get',
    params: query
  })
}